package com.scuec.groupfive.entity;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;

@Data
@Getter
@Setter
public class Questions {
    private Long questionId;
    private Integer subjectId;
    private String subjectName;    // 添加科目名称字段
    private String questionType;    // single_choice, multiple_choice, fill_in_the_blank, essay
    private String content;
    private String keyword;
    private Integer originalSequence;  // 新增序号字段，对应数据库的original_sequence
    private Integer year;
    private Long creatorId;
    private Integer status;
    private Integer typeId;         // 试卷类型ID (1:数一, 2:数二, 3:数三)
    private Integer chapterId;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // 选择题特有字段
    private String options;         // JSON格式存储选项
    private String choiceAnswer;    // 选择题答案
    private String choiceAnalysis;  // 选择题解析

    // 填空题特有字段
    private String blanks;          // 填空位置
    private String answerTemplate;  // 答案模板
    private String fillblankAnalysis; // 填空题解析

    // 主观题特有字段
    private String referenceAnswer; // 参考答案
    private String answerHints;     // 答题提示
    private String subjectiveAnalysis; // 主观题解析

    private Long favoriteId;  // 添加收藏ID字段
}